package ch07_GUI编程;

import java.awt.GridLayout;

import javax.swing.JScrollPane;
import javax.swing.JTextArea;

public class JTextAreaDemo {
	public static void main(String[] args) {
		BaseFrame f =new BaseFrame("JTextArea Demo");
		f.setLayout(new GridLayout(2,1,5,5));
		
		JTextArea ta1 = new JTextArea();
		JTextArea ta2 = new JTextArea();
		ta2.setLineWrap(true);
		
		f.add(new JScrollPane(ta1));
		f.add(new JScrollPane(ta2));
		f.showMe();
	}
}
